﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RN.ERP.DAL;


namespace RN.ERP.BLL.QD
{
    public class KaoHeBLL:BaseKaoHeBll
    {

        #region dbContext
        private QD_Context dbContext
        {
            get
            {
                return (QD_Context)base.baseContext;
            }
        }

        public KaoHeBLL()
        {
            base.baseContext = new QD_Context();
        }
        #endregion

        public override Dictionary<string, double> GetCorpDeDuckList(List<string> corpGuid, string areaCode)
        {
            string corpGuids = string.Format("'{0}',", Guid.Empty);
            foreach (var guidItem in corpGuid)
            {
                corpGuids += string.Format("'{0}',", guidItem);
            }
            corpGuids = corpGuids.TrimEnd(',');

            Dictionary<string, double> returnValue = new DAL.KaoHeDAL().GetCorpDeDuckList(corpGuids, areaCode);

            return returnValue;
        }
    }
}
